<template>
	<view>
		<vue3-map @commitCheck="commitCheck" :mapKey='mapKey' :Radius='Radius' :showResetting='showResetting'
			:listIco='listIco' :orientationIco='orientationIco' :resettingIco='resettingIco'
			:configData='configData'></vue3-map>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				mapKey: '3ce6770931bd63e259cdcc9907ebe205',
				address: '',
				latitude: '',
				longitude: '',
				listIco: '/uni_modules/vue3-map/static/item-inx.png',
				orientationIco: '/uni_modules/vue3-map/static/map-inx.png',
				resettingIco: "/uni_modules/vue3-map/static/position.png",
				showResetting: true,
				Radius: '',
				// 微信公众号jsSdk配置
				configData: {
					debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
					appId: '', // 必填，公众号的唯一标识
					timestamp: '', // 必填，生成签名的时间戳
					nonceStr: '', // 必填，生成签名的随机串
					signature: '', // 必填，签名
				}
			};
		},
		methods: {
			commitCheck(e) {
				console.log("e",e);
				uni.setStorageSync("map", e);
				// uni.$emit('commitCheck', e);
				uni.navigateBack({
					delta: 1
				});
			}
		}
	}
</script>

<style>

</style>